package com.yuyou.train.user.vo.req;

import org.apache.commons.lang3.StringUtils;

import com.yuyou.train.util.bean.ResBoolSimpleInfo;


public class ReqBehaviorHwCommit {

	private String userFileUrl;
	
	private String userFileName;

	private String fileSourceName;
	
	public static ResBoolSimpleInfo<String> validate(ReqBehaviorHwCommit req){
		ResBoolSimpleInfo<String> res=new ResBoolSimpleInfo<String>();
		if(req==null){
			res.setSuccess(false);
			res.setMessage("hwJustCommit不能为空");
			return res;
		}
		else if(StringUtils.isEmpty(req.getUserFileUrl())){
			res.setSuccess(false);
			res.setMessage("userFileUrl不能为空");
			return res;
		}		
		else if(StringUtils.isEmpty(req.getUserFileName())){
			res.setSuccess(false);
			res.setMessage("userFileName不能为空");
			return res;
		}
		
		return ResBoolSimpleInfo.getSuccessInfo();
	}
	
	
	
	public String getFileSourceName() {
		return fileSourceName;
	}

	public void setFileSourceName(String fileSourceName) {
		this.fileSourceName = fileSourceName;
	}

	public String getUserFileUrl() {
		return userFileUrl;
	}

	public void setUserFileUrl(String userFileUrl) {
		this.userFileUrl = userFileUrl;
	}

	public String getUserFileName() {
		return userFileName;
	}

	public void setUserFileName(String userFileName) {
		this.userFileName = userFileName;
	}
	
	
	
}
